import request from '@/utils/request'
export const memberOrder = params => {
  return request({
    url: '/member/order',
    method: 'GET',
    params: params
  })
}
export const memberOrderIdCancel = (id, data) => {
  return request({
    url: `/member/order/${id}/cancel`,
    method: 'PUT',
    data
  })
}
export const memberOrderDel = data => {
  return request({
    url: '/member/order',
    method: 'delete',
    data
  })
}
export const memberOrderId = id => {
  return request({
    url: `/member/order/${id}`,
    method: 'get'
  })
}
export const memberOrderPost = data => {
  return request({
    url: '/member/order',
    method: 'post',
    data
  })
}
export const memberOrderRepurchaseId = id => {
  return request({
    url: `/member/order/repurchase/${id}`,
    method: 'get'
  })
}
